package com.k2data.k2app.service;

import com.k2data.k2app.domain.SysAmq;
import com.k2data.k2app.domain.SysMail;
import com.k2data.k2app.mapper.SysAmqMapper;
import com.k2data.k2app.mapper.SysMailMapper;
import com.k2data.k2app.utils.Encryption3DES;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author lidong 17-3-6.
 */
@Log4j2
@Service
public class SysAmqService {
    @Autowired
    private  SysAmqMapper sysAmqMapper;

    @Transactional
    public int insert(SysAmq sysAmq){
        int num = sysAmqMapper.insertSelective(sysAmq);
        return num;
    }

    public int update(SysAmq sysAmq){
        int num = sysAmqMapper.updateByPrimaryKeySelective(sysAmq);
        return num;
    }


    public SysAmq get(Long id){
        SysAmq sysAmq = sysAmqMapper.get(id);
        return sysAmq;
    }
}
